/*
 * PAplicarRecaduo1.java
 *
 * Created on 30 de septiembre de 2005, 02:25 PM
 */

package com.ig.presentacion.escritorio.asistente;

import java.awt.Dimension;


/**
 *
 * @author  jsanchez
 */
public class PResumenTextArea extends javax.swing.JPanel {
	static final long serialVersionUID=0;
    /** Creates new form PAplicarRecaduo1 */
    public PResumenTextArea(Integer width,Integer height){
        initComponents();
        this.setPreferredSize(new Dimension(width,height));
    }
    
    public PResumenTextArea(){
        initComponents();
    }
    
    public void setResumen(String resumen){
        this.TextA_Resumen.setText(resumen);
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        jScrollPane2 = new javax.swing.JScrollPane();
        TextA_Resumen = new javax.swing.JTextArea();

        jScrollPane1.setBorder(null);
        jTextPane1.setBackground(new java.awt.Color(238, 238, 238));
        jTextPane1.setText("1\n2\n3\n4");
        jScrollPane1.setViewportView(jTextPane1);

        TextA_Resumen.setColumns(20);
        TextA_Resumen.setEditable(false);
        TextA_Resumen.setRows(5);
        jScrollPane2.setViewportView(TextA_Resumen);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
            .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 84, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea TextA_Resumen;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextPane jTextPane1;
    // End of variables declaration//GEN-END:variables
    public void setDescripcion(String mensaje){
        jTextPane1.setText(mensaje);        
    }        
}
